<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">

<jsp:directive.page errorPage="/WEB-INF/mayberry/ErrorPage.jsp"/>
<jsp:directive.page import="java.util.*"/>
<jsp:directive.page import="org.twnmayberry.dto.*"/>
<html>
    <title>Create POI Form</title>
    <body>
        <h2>Create POI</h2>
        
        <jsp:scriptlet>
            String handler = request.getContextPath() + "/mayberry";
        </jsp:scriptlet>
        
        <form method="POST"
            action="<%= handler %>">
            First Name: <input type="text" name="firstName" size="25" value=""/><p/>
            Middle Name: <input type="text" name="middleName" size="25" value=""/><p/>
            Last Name: <input type="text" name="lastName" size="25" value=""/><p/>
            Height: <input type="text" name="height" size="25" value=""/><p/>
            Weight: <input type="text" name="weight" size="25" value=""/><p/>
            Gender: <select name="gender"><option value="MALE">MALE</option><option value="FEMALE">FEMALE</option><option value="UNKNOWN">UNKNOWN</option></select><p/>
        <p>Activity:</p>
            Date (mm/dd/yyyy): <input type="text" name="actDate" size="25" value=""/><p/>
            Description: <input type="text" name="description" size="256" value=""/><p/>
            Note: To make the activity dangerous, put the word "dangerous" in that exact case and spelling into the description. (EX: That dude is dangerous.)<p/>
            Type: <select name="type">
                    <jsp:scriptlet>
                      List types = (List)request.getAttribute("types");
                      for(Object type : types) {
                    	  String t = type.toString();
                    </jsp:scriptlet>
                    <option value="<%= t %>" ><%= t %></option>
                    <jsp:scriptlet>
                      }
                    </jsp:scriptlet>
                  </select>
            <input type="submit" name="command" value="Create POI"/>
        </form>
        </body>
        </html>
        